package Control;

import App.DemoStart;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TableColumn;
import javafx.scene.control.ToggleButton;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

import java.io.IOException;
import java.net.URL;

public class MainView {

    @FXML
    private Button btnRefresh;

    @FXML
    private ImageView FXimage;

    @FXML
    private Button btnHistory;

    @FXML
    private ToggleButton btnSwitch;

    @FXML
    private Label textState;

    @FXML
    private Label textFreePark;

    @FXML
    private TableColumn<?, ?> tableID;

    @FXML
    private TableColumn<?, ?> tableInTime;

    @FXML
    private TableColumn<?, ?> tableOutTime;

    @FXML
    private TableColumn<?, ?> tableState;

    @FXML
    private Button btnUpPage;

    @FXML
    private Button btnDownPage;

    @FXML
    private Button btnModifyData;

    @FXML
    void Refresh(ActionEvent event) {

    }

    @FXML
    void btnDownPage(ActionEvent event) {

    }

    @FXML
    void btnHistory(ActionEvent event) throws IOException {
        HistoryCode.showView();
    }

    @FXML
    void btnModifyData(ActionEvent event) throws IOException {
        ControlView.showView();
    }

    @FXML
    void btnSwitch(ActionEvent event) {

    }

    @FXML
    void btnUpPage(ActionEvent event) {

    }


}

